<table cellpadding="0" cellspacing="0" class="module_form information" width="600">

<?php switch($type){case 'cash':?>

	<tr class="preferential cash">
		<td class="ele_title"><label for="cardnum">金　　额：<em>*</em></label></td>
		<td class="ele_content">
			<input name="attr[cash]" value="{$detail['title']}" type="text" class="form_ele_text width_200 attrValue">
		</td>
		<td colspan="2"><em>请输入现金券抵现金额</em></td>
	</tr>

<?php break;case 'discount':?>

	<tr class="preferential discount">
		<td class="ele_title"><label for="cardnum">折　　扣：<em>*</em></label></td>
		<td class="ele_content">
			<input name="attr[discount]" value="{$detail.pno}" type="text" class="form_ele_text width_200 attrValue">
		</td>
		<td colspan="2"><em>请输入折扣券折扣</em></td>
	</tr>

<?php break;case 'fullcut':?>

	<tr class="preferential FullCut">
		<td class="ele_title"><label for="cardnum">满　　减：<em>*</em></label></td>
		<td class="ele_content">
			满<input name="attr[fullcut][full][]" type="text" id="pno" class="form_ele_text width_50 attrValue">
			减<input name="attr[fullcut][cut][]"  type="text" id="pno" class="form_ele_text width_50 attrValue">
			<a class="selectTree addFullCut">新增</a>
		</td>
		<td colspan="2"><em>请输入满金额及减金额</em></td>
	</tr>

<?php break;case 'fullsend':?>

	<tr class="preferential fullsend">
		<td class="ele_title"><label for="cardnum">满　　送：<em>*</em></label></td>
		<td class="ele_content">
			满<input name="attr[fullsend][full][]" value="{$detail.pno}" type="text" id="pno" class="form_ele_text width_50 attrValue">
			送<input name="attr[fullsend][send][]" value="{$detail.pno}" type="text" id="pno" class="form_ele_text width_50 attrValue">
			<a class="selectTree fullsend addFullSend" >新增</a>
		</td>
		<td colspan="2"><em>请输入满金额及送金额</em></td>
	</tr>

<?php break;case 'fulldiscount':?>

	<tr class="preferential fulldiscount">
		<td class="ele_title"><label for="cardnum">满　　折：<em>*</em></label></td>
		<td class="ele_content">
			满<input name="attr[fulldiscount][full][]" value="{$detail.pno}" type="text" id="pno" class="form_ele_text width_50 attrValue">
			折<input name="attr[fulldiscount][discount][]" value="{$detail.pno}" type="text" id="pno" class="form_ele_text width_50 attrValue">
			<a class="selectTree fulldiscount addFullDiscount">新增</a>
		</td>
		<td colspan="2"><em>请输入满金额及折扣</em></td>
	</tr>

<?php break;case 'credit':?>

	<tr class="preferential credit">
		<td class="ele_title"><label for="cardnum">积　　分：<em>*</em></label></td>
		<td class="ele_content">
			<input  name="attr[credit]" id="attr[credit]" type="text" id="pno" class="form_ele_text width_200 attrValue">
		</td>
		<td colspan="2"><em>请输入赠送的积分数量</em></td>
	</tr>
	
<?php break;case 'product':?>

	<tr class="preferential product">
		<td class="ele_title"><label for="cardnum">实　　物：<em>*</em></label></td>
		<td class="ele_content">
			<select class="width_200 attrValue" name="attr[product]" >
				<option>请选择</option>
				
				<volist name="proList" id="v">
					<option value="{$v.id}">{$v.title}</option>
				</volist>
			</select>
		</td>
		<td colspan="2"><em>请选择赠送的商品</em></td>
	</tr>
	
<?php break;}?>

</table>

<script language="javascript">
$('#addFullSend').live('click',function(){
	$('.FullSend:eq(0)').clone().insertAfter('.FullSend:last');
});

$('#addFullDiscount').live('click',function(){
	$('.FullDiscount:eq(0)').clone().insertAfter('.FullDiscount:last');
});
</script>